package ups.Common;

import ups.MapParse.Point;


public class Port {
	public enum Map {
		Seattle,
		Tacoma
	};
	
	private String 	name;
	private Map		map;
	private int		x;
	private int		y;
	
	
	
	public Port(String name, Map map, int x, int y) {
		super();
		this.name = name;
		this.map = map;
		this.x = x;
		this.y = y;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Map getMap() {
		return map;
	}
	public void setMap(Map map) {
		this.map = map;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	
	public Point getLocation() {
		return new Point( this.x, this.y );
	}
	
	public String toString() {
		return getName() + " " + getLocation().toString();
	}
	
}
